home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
error.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
866b
|
35 lines
#include "error.h"
#include "blkmenu.h"
#include "button.h"
int error_report(char* report)
{
Window* w = new Window(rect(10, 5, 46, 16), "error.pcy");
Button* button = new Button(rect(11, 6, 45, 15),
report, NO_BORDER);
int bak = pColorSet->colors.BAK_COLOR;
int attr = pColorSet->colors.ATTR_COLOR;
pColorSet->colors.BAK_COLOR = BLUE;
pColorSet->colors.ATTR_COLOR = LIGHTRED;
w->show_window(); // window - the "dummy" way to hide button
button->show(); // button
pColorSet->colors.BAK_COLOR = bak;
pColorSet->colors.ATTR_COLOR = attr;
e = getevent(KEYEVENT | MOUSEEVENT);
e.what = KEYEVENT;
e.key = EVENT_RETURN;
global_num = 1;
global_i[0] = AC_OK;
w->hide();
delete button;
delete w;
return 1;
}
/////////////////////////